package com.cinc.ebc.sd.vo;

import com.cinc.ebc.sd.entity.SdContractDetail;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 销售合同
 * @Author: jeecg-boot
 * @Date:   2022-08-01
 * @Version: V1.0
 */
@Data
@ApiModel(value="sd_contractPage对象", description="销售合同")
public class SdContractPage {

	/**主键ID*/
	@ApiModelProperty(value = "主键ID")
    private String id;
	/**合同编号*/
	@Excel(name = "合同编号", width = 15)
	@ApiModelProperty(value = "合同编号")
    private String contractNo;
	/**合同名称*/
	@Excel(name = "合同名称", width = 15)
	@ApiModelProperty(value = "合同名称")
    private String contractName;
	/**客户*/
	@Excel(name = "客户", width = 15)
	@ApiModelProperty(value = "客户")
    private String customerId;
	/**客户名称*/
	@Excel(name = "客户名称", width = 15)
	@ApiModelProperty(value = "客户名称")
    private String customerName;
	/**合同类型*/
	@Excel(name = "合同类型", width = 15, dicCode = "crm_contract_type")
    @Dict(dicCode = "crm_contract_type")
	@ApiModelProperty(value = "合同类型")
    private String contractType;
	/**销售类型*/
	@Excel(name = "销售类型", width = 15, dicCode = "crm_contract_sale_type")
    @Dict(dicCode = "crm_contract_sale_type")
	@ApiModelProperty(value = "销售类型")
    private String saleType;
	/**纸质合同*/
	@Excel(name = "纸质合同", width = 15)
	@ApiModelProperty(value = "纸质合同")
    private String paperNo;
	/**合同金额*/
	@Excel(name = "合同金额", width = 15)
	@ApiModelProperty(value = "合同金额")
    private java.math.BigDecimal money;
	/**签约日期*/
	@Excel(name = "签约日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "签约日期")
    private Date signDate;
	/**生效日期*/
	@Excel(name = "生效日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "生效日期")
    private Date effectDate;
	/**截至日期*/
	@Excel(name = "截至日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "截至日期")
    private Date expireDate;
	/**签署单位*/
	@Excel(name = "签署单位", width = 15)
	@ApiModelProperty(value = "签署单位")
    private String customerSign;
	/**客户签约人*/
	@Excel(name = "客户签约人", width = 15)
	@ApiModelProperty(value = "客户签约人")
    private String customerMan;
	/**合同状态*/
	@Excel(name = "合同状态", width = 15, dicCode = "crm_contract_status")
    @Dict(dicCode = "crm_contract_status")
	@ApiModelProperty(value = "合同状态")
    private String status;
	/**项目*/
	@Excel(name = "项目", width = 15, dictTable = "quote_project", dicText = "project_name", dicCode = "id")
	@Dict(dictTable = "quote_project", dicText = "project_name", dicCode = "id")
	@ApiModelProperty(value = "项目")
	private String projectId;
	/**备注*/
	@Excel(name = "备注", width = 15)
	@ApiModelProperty(value = "备注")
    private String remark;
	/**销售员*/
	@Excel(name = "销售员", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@ApiModelProperty(value = "销售员")
    private String salesman;
	/**销售部门*/
	@Excel(name = "销售部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
	@ApiModelProperty(value = "销售部门")
    private String salesDept;
	/**负责人*/
	@Excel(name = "负责人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@ApiModelProperty(value = "负责人")
    private String owner;
	/**负责部门*/
	@Excel(name = "负责部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
	@ApiModelProperty(value = "负责部门")
    private String ownerDept;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改人*/
	@ApiModelProperty(value = "修改人")
    private String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "修改时间")
    private Date updateTime;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**租户ID*/
	@Excel(name = "租户ID", width = 15)
	@ApiModelProperty(value = "租户ID")
    private Integer tenantId;
	/**账期类型*/
	@Excel(name = "账期类型", width = 15)
	@ApiModelProperty(value = "账期类型")
    private String accountPeriodType;
	/**账期天数*/
	@Excel(name = "账期天数", width = 15)
	@ApiModelProperty(value = "账期天数")
    private Integer accountPeriodDays;
	/**收款金额*/
	@Excel(name = "收款金额", width = 15)
	@ApiModelProperty(value = "收款金额")
    private java.math.BigDecimal receiveMoney;
	/**收款类型*/
	@Excel(name = "收款类型", width = 15)
	@ApiModelProperty(value = "收款类型")
    private String receivetTypt;
	/**收款比例*/
	@Excel(name = "收款比例", width = 15)
	@ApiModelProperty(value = "收款比例")
    private java.math.BigDecimal receiveRatio;
	/**合同附件*/
	@Excel(name = "合同附件", width = 15)
	@ApiModelProperty(value = "合同附件")
    private String attachment;
	/**币种*/
	@Excel(name = "币种", width = 15, dictTable = "mdm_currency", dicText = "currency_name", dicCode = "currency_no")
	@Dict(dictTable = "mdm_currency", dicText = "currency_name", dicCode = "currency_no")
	@ApiModelProperty(value = "币种")
	private String currencyNo;

	@ExcelCollection(name="销售合同明细")
	@ApiModelProperty(value = "销售合同明细")
	private List<SdContractDetail> sdContractDetailList;

}
